package cn.itcast.service.cargo;

import cn.itcast.domain.cargo.Packing;
import cn.itcast.domain.cargo.Shipping;
import cn.itcast.domain.cargo.ShippingExample;
import com.github.pagehelper.PageInfo;

import java.util.Map;

public interface ShippingService {

    /**
     * 分页查询
     * @param shippingExample
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<Shipping> findByPage(ShippingExample shippingExample, Integer pageNum, Integer pageSize);

    /**
     * 保存
     * @param shipping
     */
    void save(Shipping shipping);

    /**
     * 删除
     * @param shippingOrderId
     * @return
     */
    Map<String, Object> delete(String shippingOrderId);

    /**
     * 根据Id查询
     * @param id
     * @return
     */
    Shipping findById(String id);
}
